namespace XEAS.Framework.Graphic
{
    using System;
    using System.Drawing;

    public sealed class GraphicUtilities
    {
        public static Image ResizeBitmap(Image inputImage, int nWidth, int nHeight)
        {
            Bitmap image = new Bitmap(nWidth, nHeight);
            using (Graphics graphics = Graphics.FromImage(inputImage))
            {
                graphics.DrawImage(image, 0, 0, nWidth, nHeight);
            }
            return image;
        }
    }
}

